home *** CD-ROM | disk | FTP | other *** search
- -- card: 3716 from stack: in.1
- -- bmap block id: 4367
- -- flags: 0000
- -- background id: 4025
- -- name:
-
-
- -- part 1 (field)
- -- low flags: 00
- -- high flags: 0007
- -- rect: left=14 top=38 right=335 bottom=360
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 0
- -- font id: 3
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: TheList
-
-
- -- part 2 (button)
- -- low flags: 00
- -- high flags: A003
- -- rect: left=368 top=41 right=68 bottom=482
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: New List
- ----- HyperTalk script -----
- --
- -- Script of cd button "New List" in stack "List Randomizer"
- --
- -- Written by Jack W. Richens, Jr.
- -- Richens Consulting
- -- P.O. Box 1853
- -- Columbia, MO 65205
- -- (314) 445-8042
- --
- -- Copyright 1991, Richens Consulting, Columbia, Missouri
- --
- -- This script sets up for a new list. It allows user to save
- -- previous list if they desire.
- --
- on mouseUp
- global uL,fName,status
- --
- -- Is there anything to save?
- --
- if cd fld "TheList" is not empty then
- answer "Save current list?" with "No" or "Yes"
- if it is "Yes" then do saveFile
- end if
- --
- -- This button will clear the bkgnd field "TheList"
- --
- put empty into cd fld "TheList"
- put empty into fName
- put "N" into status
-
- type tab
- end mouseUp
-
-
-
- -- part 3 (button)
- -- low flags: 00
- -- high flags: A003
- -- rect: left=368 top=73 right=100 bottom=482
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: Open List...
- ----- HyperTalk script -----
- --
- -- Script of cd button "Open list..." in stack "List Randomizer"
- --
- -- Written by Jack W. Richens, Jr.
- -- Richens Consulting
- -- P.O. Box 1853
- -- Columbia, MO 65205
- -- (314) 445-8042
- --
- -- Copyright 1991, Richens Consulting, Columbia, Missouri
- --
- -- This script reads in a list from a file. It first allows
- -- user to save current list.
- --
- on mouseUp
- --
- -- This button will read the contents of a text file into
- -- the card field "TheList"
- --
- if cd fld "TheList" is not empty then
- answer "Save current list?" with "No" or "Yes"
- if it is "Yes" then do saveFile
- put empty into cd field "TheList"
- end if
-
- readFile
-
- end mouseUp
-
-
-
- -- part 8 (button)
- -- low flags: 00
- -- high flags: A003
- -- rect: left=368 top=104 right=131 bottom=482
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: Save List...
- ----- HyperTalk script -----
- --
- -- Script of cd button "Save List..." in stack "List Randomizer"
- --
- -- Written by Jack W. Richens, Jr.
- -- Richens Consulting
- -- P.O. Box 1853
- -- Columbia, MO 65205
- -- (314) 445-8042
- --
- -- Copyright 1991, Richens Consulting, Columbia, Missouri
- --
- -- This script saves an existing list, creating a new file
- -- if necessary
- on mouseUp
- global uL,fName,status
- --
- saveFile
-
- end mouseUp
-
-
-
- -- part 4 (button)
- -- low flags: 00
- -- high flags: A003
- -- rect: left=368 top=135 right=162 bottom=482
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: Print List...
- ----- HyperTalk script -----
- --
- -- Script of cd button "Print List..." in stack "List Randomizer"
- --
- -- Written by Jack W. Richens, Jr.
- -- Richens Consulting
- -- P.O. Box 1853
- -- Columbia, MO 65205
- -- (314) 445-8042
- --
- -- Copyright 1991, Richens Consulting, Columbia, Missouri
- --
- -- This script prints the field "TheList"
- --
- on mouseUp
- --
- print cd fld "TheList"
-
- end mouseUp
-
-
-
- -- part 5 (button)
- -- low flags: 00
- -- high flags: A003
- -- rect: left=368 top=180 right=207 bottom=482
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: Sort
- ----- HyperTalk script -----
- --
- -- Script of cd button "Sort" in stack "List Randomizer"
- --
- -- Written by Jack W. Richens, Jr.
- -- Richens Consulting
- -- P.O. Box 1853
- -- Columbia, MO 65205
- -- (314) 445-8042
- --
- -- Copyright 1991, Richens Consulting, Columbia, Missouri
- --
- -- This script sorts the list into alphabetical order.
- --
- on mouseUp
- --
- Sort cd fld "TheList"
- end mouseUp
-
-
-
- -- part 6 (button)
- -- low flags: 00
- -- high flags: A003
- -- rect: left=368 top=212 right=239 bottom=482
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: Randomize
- ----- HyperTalk script -----
- --
- -- Script of cd button "Randomize" in stack "List Randomizer"
- --
- -- Written by Jack W. Richens, Jr.
- -- Richens Consulting
- -- P.O. Box 1853
- -- Columbia, MO 65205
- -- (314) 445-8042
- --
- -- Copyright 1991, Richens Consulting, Columbia, Missouri
- --
- -- This script randomizes the list
- --
- on mouseUp
- --
- lock screen
- put number of lines in cd fld "TheList" into nLines
- put cd fld "TheList" into tempList
- put empty into cd fld "TheList"
- --
- repeat until nLines is 0
- put the random of nLines into lNumber
- put line lNumber of tempList & return after cd fld "TheList"
- delete line lNumber of tempList
- subtract 1 from nlines
- end repeat
-
- unlock screen
- end mouseUp
-
-
-
- -- part 7 (button)
- -- low flags: 00
- -- high flags: 2002
- -- rect: left=432 top=292 right=336 bottom=482
- -- title width / last selected line: 0
- -- icon id / first selected line: 1006 / 1006
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: Finder
- ----- HyperTalk script -----
- --
- -- Script of cd button "Finder" in stack "List Randomizer"
- --
- -- Written by Jack W. Richens, Jr.
- -- Richens Consulting
- -- P.O. Box 1853
- -- Columbia, MO 65205
- -- (314) 445-8042
- --
- -- Copyright 1991, Richens Consulting, Columbia, Missouri
- --
- -- This script returns you to the Finder
- --
- on mouseUp
- Beep
- answer "Returning to Finder..." with "Cancel" or "OK"
- if it is "OK" then doMenu "Quit HyperCard"
- end mouseUp
-
-
-
- -- part 9 (button)
- -- low flags: 00
- -- high flags: 2002
- -- rect: left=369 top=292 right=336 bottom=419
- -- title width / last selected line: 0
- -- icon id / first selected line: 20098 / 20098
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: Home
- ----- HyperTalk script -----
- --
- -- Script of cd button "Home" in stack "List Randomizer"
- --
- -- Written by Jack W. Richens, Jr.
- -- Richens Consulting
- -- P.O. Box 1853
- -- Columbia, MO 65205
- -- (314) 445-8042
- --
- -- Copyright 1991, Richens Consulting, Columbia, Missouri
- --
- -- This script returns you to the Home stack
- --
- on mouseUp
- Beep
- answer "Returning to Home Stack..." with "Cancel" or "OK"
- if it is "OK" then go to stack "Home"
- end mouseUp
-
-
-
- -- part 10 (button)
- -- low flags: 00
- -- high flags: 2002
- -- rect: left=369 top=243 right=287 bottom=419
- -- title width / last selected line: 0
- -- icon id / first selected line: 2478 / 2478
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: About
- ----- HyperTalk script -----
- --
- -- Script of button “About” in stack "List Randomizer"
- --
- -- Written by Jack W. Richens, Jr.
- -- Richens Consulting
- -- P.O. Box 1853
- -- Columbia, MO 65205
- -- (314) 445-8042
- --
- -- Copyright 1991, Richens Consulting, Columbia, Missouri
- --
- --
- on mouseUp
- go to card "About"
- end mouseUp
-
-
-
- -- part 11 (button)
- -- low flags: 00
- -- high flags: 2002
- -- rect: left=432 top=243 right=287 bottom=482
- -- title width / last selected line: 0
- -- icon id / first selected line: 25002 / 25002
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: Help
- ----- HyperTalk script -----
- --
- -- Script of button “Help” in stack "List Randomizer"
- --
- -- Written by Jack W. Richens, Jr.
- -- Richens Consulting
- -- P.O. Box 1853
- -- Columbia, MO 65205
- -- (314) 445-8042
- --
- -- Copyright 1991, Richens Consulting, Columbia, Missouri
- --
- --
- on mouseUp
- go to card "Help"
- end mouseUp
-
-